<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/yg_xx.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/yg_xx.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'XUANX',
                footer: "Foots",
                cnName: '亿格配置对应表',
                name: 'jrtable/yg_xx',
                url: "/yg_xx/",
                sortName: "SHUOM"
            });
            const editFormFields = ref({"TEZM":"","SHUOM":"","XUANX":"","SHUOM_1":""});
            const editFormOptions = ref([[{"title":"特征名称","field":"SHUOM"},
                               {"title":"特征编码","required":true,"field":"TEZM"}],
                              [{"title":"特征值名称","field":"SHUOM_1"},
                               {"title":"特征值编码","required":true,"field":"XUANX"}]]);
            const searchFormFields = ref({"TEZM":"","SHUOM":"","XUANX":"","SHUOM_1":""});
            const searchFormOptions = ref([[{"title":"特征编码","field":"TEZM","type":"like"},{"title":"特征名称","field":"SHUOM","type":"like"}],[{"title":"特征值编码","field":"XUANX","type":"like"},{"title":"特征值名称","field":"SHUOM_1","type":"like"}]]);
            const columns = ref([{field:'TEZM',title:'特征编码',type:'string',width:110,require:true,align:'left',sort:true},
                       {field:'SHUOM',title:'特征名称',type:'string',link:true,width:110,align:'left'},
                       {field:'YOUX',title:'YOUX',type:'string ',width:110,hidden:true,align:'left'},
                       {field:'XUANX',title:'特征值编码',type:'string',width:110,require:true,align:'left'},
                       {field:'SHUOM_1',title:'特征值名称',type:'string',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
